package team.archai.nexus.boot.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description: tiny boot  配置
 * @author: lishibin
 * @create: 2020-06-26 23:25
 **/
@Configuration
@Setter
@Getter
@ConfigurationProperties(prefix = "archai-nexus")
public class ArchaiNexusProperties {

    /**
     * 是否开启banner
     */
    private Boolean banner;

    /**
     * 版本号
     */
    private String version;

    /**
     * 是否启用日志切面打印
     */
    private Boolean apiLogAspect;

    /**
     * 是否启用基础业务内置文档
     */
    private Boolean basicsDocEnabled;

    /**
     * 是否启用客户端IP过滤
     */
    private Boolean clientIpFilterEnabled;
    /**
     * clientIpFilterEnabled 为true时有效 多个,分割 只有在其中的IP才允许访问
     */
    private String ipList;
}
